package com.ruoyi.provider.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 定损项目列表
 * @TableName ahct_define_damage_project
 * @author Wang RuLong
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value ="ahct_define_damage_project")
public class AhctDefineDamageProject extends BaseEntity implements Serializable {
    /**
     * 主鍵id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 案件号
     */
    private String case_number;

    /**
     * 定损id
     */
    private Integer define_damage_id;

    /**
     * 物损项目名称
     */
    private String damage_project_name;

    /**
     * 物损项目情况
     */
    private String damage_project_situation;

    /**
     * 物损项目数量
     */
    private Integer damage_project_number;

    /**
     * 物损项目价格
     */
    private BigDecimal damage_project_price;

    /**
     * 逻辑删除
     */
    private Integer deleted;

    /**
     * 创建者
     */
    private String create_by;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date create_time;

    /**
     * 更新者
     */
    private String update_by;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date update_time;


    private List<String> imgList;

    private List<AhctDefineDamageProject> itemQuantity;

    /**
     * 单位
     */
    private String unit;

    /**
     * 备注
     */
    private String remarks;

    private BigDecimal total_amount;

    private BigDecimal taxes;

    private BigDecimal construction_amount;

    private Integer index;


    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    public AhctDefineDamageProject() {
        this.damage_project_price = damage_project_price;
    }
}